package com.imti.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.imti.entity.Doctor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (Doctor)表数据库访问层
 *
 * @author makejava
 * @since 2023-01-30 15:52:20
 */
@Mapper
public interface DoctorDao extends BaseMapper<Doctor> {

    @Select("select * from doctor where 2=2")
    public List<Doctor> getDoc(Page page);

    public List<Doctor> getDocBySQLLimit(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
}

